package com.road.vast.response;

import com.road.vast.pojo.company.CoCompany;
import com.road.vast.pojo.company.CoDepartment;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author 郭泽鹏
 * @Date 2020/7/10 23:28
 * @Version 1.0
 * @Description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeptListResult {
    private String companyId;

    private String companyName;

    private String companyManage;       //公司联系人

    private List<CoDepartment> depts;

    public DeptListResult(CoCompany coCompany, List<CoDepartment> depts){
        this.companyId = coCompany.getId();
        this.companyName = coCompany.getName();
        this.companyManage = coCompany.getLegalRepresentative();    //公司联系人
        this.depts = depts;
    }
}
